import request from '@/utils/request';

export const getLanguages = () => {
  return request.get('/languages');
};

export const setUserLanguage = (languageCode) => {
  return request.post('/user/language', { language: languageCode });
};